package com.fs.service;

import com.fs.global.CustomException;

class BadParamException extends CustomException {
    BadParamException() {
        super("参数有误");
    }

    BadParamException(String error) {
        super(error);
    }
}

class CanNotDeleteException extends CustomException {
    CanNotDeleteException() {
        super("数据库记录无法删除");
    }

    CanNotDeleteException(String error) {
        super(error);
    }
}

class NotFoundException extends CustomException {
    NotFoundException() {
        super("数据库记录不存在");
    }

    NotFoundException(String error) {
        super(error);
    }
}

class UpdateNotOneException extends CustomException {
    UpdateNotOneException() {
        super("更新记录数量不等于一");
    }

    UpdateNotOneException(String err) {
        super(err);
    }
}

class AddReferenceException extends CustomException {
    AddReferenceException() {
        super("不允许添加关联");
    }

    AddReferenceException(String err) {
        super(err);
    }
}

class BusinessException extends CustomException {

    BusinessException(String err){super(err);}
}



